<?php
class YWSConfigs {
    public static $_LOCALE = 1;
    public static $_CURRENT_PAGE = 'Home.Index';
    
    public static function getLocale() {
        if (!isset ($_COOKIE['_LOCALE'])) return YWSConfigs::$_LOCALE;
        else return $_COOKIE['_LOCALE'];
    }
    
    public static function getAction() {
        return Yii::app()->getController()->getAction()->getId();
    }
}
?>
